import request from '@/utils/request'

// 查询星选官活动管理列表
export function listStarActivity(query) {
  return request({
    url: '/StarActivity/StarActivity/list',
    method: 'get',
    params: query
  })
}

// 查询星选官活动管理列表(不分页)
export function allListStarActivity(query) {
  return request({
    url: '/StarActivity/StarActivity/allList',
    method: 'get',
    params: query
  })
}

// 查询星选官活动管理详细
export function getStarActivity(id) {
  return request({
    url: '/StarActivity/StarActivity/' + id,
    method: 'get'
  })
}

// 新增星选官活动管理
export function addStarActivity(data) {
  return request({
    url: '/StarActivity/StarActivity',
    method: 'post',
    data: data
  })
}

// 修改星选官活动管理
export function updateStarActivity(data) {
  return request({
    url: '/StarActivity/StarActivity',
    method: 'put',
    data: data
  })
}

// 删除星选官活动管理
export function delStarActivity(id) {
  return request({
    url: '/StarActivity/StarActivity/' + id,
    method: 'delete'
  })
}

// 导出星选官活动管理
export function exportStarActivity(query) {
  return request({
    url: '/StarActivity/StarActivity/export',
    method: 'get',
    params: query
  })
}
